/**
 * @version 2007-1-5
 * @author xalinx at gmail dot com
 */
package org.nanhill.commons.pattern.flow;

/**
 * @version 2007-1-5
 * @author xalinx at gmail dot com
 * 
 */
public interface EventFactory {

	/**
	 * Create event.
	 * @param onId 
	 * 
	 * @param from
	 *            From State.
	 * @param to
	 *            To State.
	 * @return
	 */
	Event createEvent(String id, String onId, State from, State to);

}
